package com.ssm.pre.dao;

import java.util.List;
import java.util.Map;

public interface FaultDao {
	
	//查询故障类型列表
	public List<Map<String, Object>> queryFaultList(Map<String, Object> map) throws Exception;
	//新增故障类型列表
	public int addFault(Map<String, Object> map) throws Exception;
	//修改故障类型列表
	public int editFault(Map<String, Object> map) throws Exception;
	//删除故障类型列表
	public int deleteFaultById(Map<String, Object> map) throws Exception;
	//根据id查询
	public Map<String, Object> findFaultById(Map<String, Object> map) throws Exception;
	//查询所有的故障类型名称
	public List<Map<String, Object>> queryFaultByName(Map<String, Object> map)throws Exception;
	
}
